﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TYThreadParser
{
    public partial class TYForm : Form
    {
        #region  --- 私有成员 ---

        private ThreadProcessor threadProcessor = null; 

        #endregion

        public TYForm()
        {
            InitializeComponent();

            #region  --- 初始化 ---

            this.threadProcessor = new ThreadProcessor(this.webBrowser1);

            #endregion
        }

        #region  --- 控件事件处理 ---

        private void btnBrowser_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(this.tbUrl.Text))
            {
                this.threadProcessor.GetThreadInfo(this.tbUrl.Text);
            }
        }

        private void btnPrint_Click(object sender, EventArgs e)
        {
            this.threadProcessor.SavePages(1, 1);
        }

        #endregion

       


    }
}
